<%@ page language="java" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@ page import="org.jeecgframework.core.util.ContextHolderUtils"%>
<%@page import="org.jeecgframework.core.util.StringUtil"%>
<%@include file="/context/mytags.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<%
	int value = 0;
	String userName = "";
	Object uname = session.getAttribute("userName");
	String mbId = "";
	Object mbIdV = session.getAttribute("mbId");
	if (StringUtil.isNotEmpty(mbIdV)) {
		mbId = mbIdV.toString();
	}
	if (StringUtil.isNotEmpty(uname)) {
		value = 1;
		userName = uname.toString();
	} else {
		value = 0;
	}

	String lang = org.jeecgframework.core.util.BrowserUtils.getBrowserLanguage(request);
	session.setAttribute("lang", lang);
%>

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<link rel="stylesheet" href="css/index.css">
<link rel="stylesheet" href="css/shezhi.css">
<link rel="stylesheet" href="css/xiaoxi.css">
<title></title>
</head>
<body>

	<!--头部 -->
	<div class="head_top">
		<div class="head_top_z">
			<div class="head_top_l">
				<div>
					<%
						if (userName.equals("")) {
					%>
					<div class="head_top_longin">
						<a href="<%=request.getContextPath() + "/registerController.do?goReg"%>">注册</a>
					</div>
					<div class="head_top_reg">
						<a href="<%=request.getContextPath() + "/frontLoginController.do?goLogin"%>">登录</a>
					</div>
					<%
						} else {
					%>

					<img style="vertical-align: middle; margin-top: 2px" src="imges/top_touxiang.png" /> <span style="margin-left: 5px">欢迎您: <%=userName%></span>

					<ul>
						<li style="border: none">
							<span class="Darrow"></span>
							<a href="#">帖子</a>
							<dl>
								<dt>
									<span class="arrow"></span>
								</dt>
								<dd>
									<a href="<%=request.getContextPath() + "/collectController.do?allCollect&types=all"%>">收藏</a>
								</dd>
								<dd>
									<a href="<%=request.getContextPath() + "/FriendController.do?friendLists"%>">好友</a>
								</dd>
							</dl>
						</li>&nbsp;&nbsp;

						<li>
							<a href="<%=request.getContextPath() + "/userInfoController.do?userInfosPage&options=base"%>">设置</a>
						</li>
						<li>
							<a href="<%=request.getContextPath() + "/messageController.do?privateMessage"%>">消息</a>
						</li>
						<li>
							<a style="color: #666;" href="<%=request.getContextPath() + "/frontLoginController.do?logout"%>">退出</a>
						</li>
					</ul>

					<%
						}
					%>
				</div>
			</div>
			<div class="head_top_r">
				<div style="margin-top: 10px">
					<span style="margin-right: 10px;"><a href="#">设为首页</a></span> <span><a href="#">收藏本站</a></span>
				</div>
			</div>
		</div>
	</div>

	<div class="head_logo">
		<div style="height: 85px; width: 240px">
			<a href="<%=request.getContextPath() + "/indexController.do?index"%>">
				<img style="margin-top: 17px;" src="imges/logo.png">
			</a>
		</div>
		<div class="top_search">
			<div class="gwfss">
				<a href="" class="gg1">帖子</a>
				<a href="" class="gg2">用户</a>
			</div>
			<!-- 			<form action="/font/home/onePriceIndex" id="firstform" method="post"> -->
			<img style="position: absolute; margin-top: 15px; margin-left: 10px;" src="imges/search1.png">
			<input class="input_text" name="content" placeholder="请输入搜索内容">
			<input class="input_submit" value="域名搜索" type="submit">
			<!-- 			</form> -->
			<ul>
				<li style="margin-left: 0px">
					<a href="#">发财</a>
				</li>
				<li>
					<a href="#">胎记</a>
				</li>
				<li>
					<a href="#">堕胎</a>
				</li>
				<li>
					<a href="#">罗盘</a>
				</li>
				<li>
					<a href="#">抑郁症</a>
				</li>
				<li>
					<a href="#">有胎记的人</a>
				</li>
				<li>
					<a href="#">七杀</a>
				</li>
				<li>
					<a href="#">房价</a>
				</li>
				<li>
					<a href="#">看看小儿八字</a>
				</li>
				<li>
					<a href="#">外遇</a>
				</li>
			</ul>
		</div>
		<div style="float: right">
			<img style="margin-top: -60px;" src="imges/erweima.png">
		</div>
	</div>
	<!--导航部分 -->
	<div class="head_nav">
		<ul>
			<c:if test="${backgroundColor == '1'}">
				<li class="active">
					<a href="<%=request.getContextPath() + "/indexController.do?index"%>">论坛</a>
				</li>
			</c:if>
			<c:if test="${backgroundColor != '1'}">
				<li>
					<a href="<%=request.getContextPath() + "/indexController.do?index"%>">论坛</a>
				</li>
			</c:if>

			<c:if test="${backgroundColor == '2'}">
				<li class="active">
					<a href="<%=request.getContextPath() + "/indexController.do?group"%>">群组</a>
				</li>
			</c:if>
			<c:if test="${backgroundColor != '2'}">
				<li>
					<a href="<%=request.getContextPath() + "/indexController.do?group"%>">群组</a>
				</li>
			</c:if>

			<c:if test="${backgroundColor == '3'}">
				<li class="active">
					<a href="<%=request.getContextPath() + "/indexController.do?home&show=dt_friend"%>">家园</a>
				</li>
			</c:if>
			<c:if test="${backgroundColor != '3'}">
				<li>
					<a href="<%=request.getContextPath() + "/indexController.do?home&show=dt_friend"%>">家园</a>
				</li>
			</c:if>

			<c:if test="${backgroundColor == '4'}">
				<li class="active">
					<a href="<%=request.getContextPath() + "/indexController.do?taoTie"%>">淘帖</a>
				</li>
			</c:if>
			<c:if test="${backgroundColor != '4'}">
				<li>
					<a href="<%=request.getContextPath() + "/indexController.do?taoTie"%>">淘帖</a>
				</li>
			</c:if>

			<c:if test="${backgroundColor == '5'}">
				<li class="active">
					<a href="<%=request.getContextPath() + "/indexController.do?suanMing"%>">在线批八字算命</a>
				</li>
			</c:if>
			<c:if test="${backgroundColor != '5'}">
				<li>
					<a href="<%=request.getContextPath() + "/indexController.do?suanMing"%>">在线批八字算命</a>
				</li>
			</c:if>

			<c:if test="${backgroundColor == '6'}">
				<li class="active">
					<a href="<%=request.getContextPath() + "/indexController.do?paiPan"%>">在线排盘</a>
				</li>
			</c:if>
			<c:if test="${backgroundColor != '6'}">
				<li>
					<a href="<%=request.getContextPath() + "/indexController.do?paiPan"%>">在线排盘</a>
				</li>
			</c:if>

		</ul>
	</div>

</body>
</html>